package studentInterface;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

public class ObjectFactory {
	public static final Object getObject() throws NamingException{
		String url = "rmi://localhost:5555/RegisterCourse";
		Context ctx = new InitialContext();
		Object obj = ctx.lookup(url);
		return obj;
	}
}
